package cn.wjssl.types.common;

public class Constants {

    public final static String SPLIT = ",";
    public final static String COLON = ":";
    public final static String SPACE = " ";
    public final static String UNDERLINE = "_";

    public static class RedisKey {
        // 策略key
        public static String STRATEGY_KEY = "big_market_strategy_key_";
        // strategy_award 表实体的key
        public static String STRATEGY_AWARD_KEY = "big_market_strategy_award_key_";
        // strategy_award 表实体list的key
        public static String STRATEGY_AWARD_LIST_KEY = "big_market_strategy_award_list_key_";
        // awardId 对应抽奖的key
        public static String STRATEGY_RATE_TABLE_KEY = "big_market_strategy_rate_table_key_";
        // awardId 对应奖池内总数的key
        public static String STRATEGY_RATE_RANGE_KEY = "big_market_strategy_rate_range_key_";
        // 决策树Id的key
        public static String RULE_TREE_VO_KEY = "rule_tree_vo_key_";
        // 初始库存key
        public static String STRATEGY_AWARD_COUNT_KEY = "strategy_award_count_key_";
        // redis 奖品库存消耗阻塞队列用Key
        public static String STRATEGY_AWARD_COUNT_QUEUE_KEY = "strategy_award_count_queue_key";
        // 权重配置key
        public static String STRATEGY_RULE_WEIGHT_KEY = "strategy_rule_weight_key_";

        // 抽奖活动key
        public static String ACTIVITY_KEY = "big_market_activity_key_";
        public static String ACTIVITY_SKU_KEY = "big_market_activity_sku_key_";
        // 参与次数key
        public static String ACTIVITY_COUNT_KEY = "big_market_activity_count_key_";
        // redis 活动SKU库存消耗阻塞队列用Key
        public static String ACTIVITY_SKU_COUNT_QUEUE_KEY = "activity_sku_count_queue_key";
        // 活动商品SKU库存的key
        public static String ACTIVITY_SKU_STOCK_COUNT_KEY = "activity_sku_stock_count_key_";
        // 活动账户, 分布式锁
        public static String ACTIVITY_ACCOUNT_LOCK = "activity_account_lock_";
        // 积分账户, 分布式锁
        public static String USER_CREDIT_ACCOUNT_LOCK = "user_credit_account_lock_";
        // 活动账户更新锁
        public static String ACTIVITY_ACCOUNT_UPDATE_LOCK = "activity_account_update_lock_";

        // 限流key
        public static String RATE_LIMITER_KEY = "rate_limiter_key_";
        // 限流黑名单用户key
        public static String RATE_LIMITER_BLACK_LIST_KEY = "rate_limiter_black_list_key_";
    }
}
